<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .item {
            width: 80px;
            height: 80px;
            background-color: #42b983;
        }
    </style>
    <script>
        function ondragstart(e) {
            console.log(e)
            e.dataTransfer.effectAllowed = 'move'
        }
    </script>
</head>
<body>
<div draggable="true" ondragstart="ondragstart" class="item"></div>

</body>
</html>